Repository navigation
[Version 11.0] Feature support for raw string literals - #1599
Draft
RexJaeschke wants to merge 9 commits into
Draft
RexJaeschke wants to merge 9 commits into
RexJaeschke wants to merge 9 commits into
Conversation
RexJaeschke
marked this pull request as draft
March 8, 2026 14:27
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
April 29, 2026 19:30
3ba09fe to
31f5de0
Compare
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
May 13, 2026 16:37
8da2fed to
d8dd2c2
Compare
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
June 24, 2026 20:15
d8dd2c2 to
caadf30
Compare
Member
|
An earlier version of this feature is already present on |
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
July 24, 2026 19:57
caadf30 to
b96eebd
Compare
BillWagner
force-pushed
the
v11-raw-string-literals
branch
4 times, most recently
from
September 21, 2026 19:20
3210fac to
689f654
Compare
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
October 14, 2026 18:11
bcc857f to
7d318aa
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
- grammar rule has a space instead of an underscore. - a couple locations where raw interpolated strings weren't added. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: bce5e82a-89fd-4655-bc08-6d6ba97f0cc6 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
Preserve the existing raw-string derivations and multiplicities: single-line (content-or-interpolation)+ and multiline (content-or-interpolation-or-newline)*. Keep text segments lexical and interpolate expressions syntactically, as the adjacent regular and verbatim string productions do. This removes illegal ANTLR lexer-to-parser references without changing contextual lexical restrictions or authored examples. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
The CRLF alternative in an ANTLR negated set is illegal and redundant with the existing individual CR and LF exclusions. Preserve exactly the five excluded newline code points using the same single-character-set notation as adjacent string-literal productions; no prose or examples changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21570b74-c6f5-4fc5-ab6d-7546918d6ddb Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
BillWagner
force-pushed
the
v11-raw-string-literals
branch
from
November 12, 2026 23:37
7d318aa to
2079254
Compare
BillWagner
added a commit
that referenced
this pull request
Nov 12, 2026
Preserve current committee source and genuine feature additions; resolve the recorded mechanical source overlap. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 361b9a77-2b4c-45e6-969f-e6785c47f27e
Add more normative text regarding the processing of `{`, `}`, and `"` characters in a raw string literal.
Whitespace only lines needn't be as long as the prefix. However, whitespace after the prefix length is preserved in the output string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is Rex's adaptation of the corresponding MS proposal.